package com.java.grammer.oop;

/**
 * @author luzhikun
 * @date 2020/11/29- 11:32
 */
public class Employee {
    private String name;
    private int id;
    private double salary;

    public Employee() {

    }

    public Employee(String name, int id, double salary) {
        this.name = name;
        this.id = id;
        this.salary = salary;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setId(int id) {
        this.id = id;

    }

    public int getId() {
        return id;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public double getSalary() {
        return salary;
    }

    public void printWork() {
        System.out.println("这个员工的名字为：" + getName() + "  这个员工的id为：" + getId() + "  这个员工的工资为：" + getSalary());

    }
}


